<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script>
    function Book(){
        this.title = "title";
    }
    var obj = Book.prototype;
    obj.a = "test";
    var obj1 = Book.prototype.constructor;
    
    console.log(typeof obj1);
    console.log(typeof obj);    
    console.log(obj instanceof Object);
    console.log(Book instanceof Function);
    
    function Book2(a){
        var title = a;
        function getTitle(){
            return title;
        }
        // this로 해야 오픈된다.
        this.gt = getTitle;
    }
    
    var book2 = new Book2("java");
    //console.log(book2.getTitle());
    console.log(book2.gt());
    
</script>
</head>
<body>

</body>
</html>